package codec

import "rpc-demo/net/util"

// Encode 编码
func Encode(data []byte) []byte {
	var sendInfo []byte
	lengthByte := util.IntToBytes(len(data))
	sendInfo = append(sendInfo, lengthByte...)
	sendInfo = append(sendInfo, data...)
	return sendInfo
}

func Decode() {

}
